Release 10.1A: OpenEdge Development:
Programming Interfaces
Writing data on a socket
You can write data on a connected TCP/IP socket at any time using the
WRITE( )method on the corresponding socket object (SELF:WRITE( )within the correspondingREAD-RESPONSEevent procedure).The syntax of the
WRITE( )method follows:
The
WRITE( )method transfers the number of bytes specified by theINTEGERexpression,bytes-to-write, from the specifiedMEMPTRvariable,memptr-expression, to the socket starting from the byte position within theMEMPTRregion specified by theINTEGERexpression,position.You can verify the number of bytes actually written by the
WRITE( )method. The number of bytes written by the lastWRITE( )method invoked on a socket object is equal to the value of theBYTES-WRITTENattribute invoked on the same socket object.
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |